package com.hdoit.apollo.logical.stock.model;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.Entity;

import org.apache.ibatis.type.Alias;

import com.hdoit.apollo.logical.cargo.model.Cargo;
import com.tennetcn.data.message.ModelBase;
/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年04月02日 11:33:11
 * @comment
 */
@Entity
@Table(name="stock_stock")
@Alias("stock")
public class Stock extends ModelBase{
    //Id
    @Id
    @Column(name="stockId")
    private String stockId;

    //库存数
    @Column(name="stockNum")
    private Double stockNum;

    //尚欠数
    @Column(name="stockDebt")
    private Double stockDebt;

    //货物Id
    @Column(name="cargoId")
    private String cargoId;
    
    //分仓标记
    @Column(name="separate")
    private String separate;

    //门店id
    @Column(name="shopId")
    private String shopId;

    //创建时间
    @Column(name="createDate")
    private Date createDate;

    //创建人id
    @Column(name="createUserId")
    private String createUserId;

    //创建人名称
    @Column(name="createUserName")
    private String createUserName;

    //修改时间
    @Column(name="modifyDate")
    private Date modifyDate;

    //修改人id
    @Column(name="modifyUserId")
    private String modifyUserId;

    //修改人名称
    @Column(name="modifyUserName")
    private String modifyUserName;

    //删除标记
    @Column(name="deleteMark")
    private Integer deleteMark;
    
    @Transient
    private List<StockCollocation> stockCollocations;
    
    @Transient
    private Cargo cargo;
    
    //备注
    @Column(name="comment")
    private String comment;
    
    //最高价
    @Transient
    private Double minSale;
    
    //最低价
    @Transient
    private Double maxSale;
    
    public String getSeparate() {
		return separate;
	}
	public void setSeparate(String separate) {
		this.separate = separate;
	}
	public Double getMinSale() {
		return minSale;
	}
	public void setMinSale(Double minSale) {
		this.minSale = minSale;
	}
	public Double getMaxSale() {
		return maxSale;
	}
	public void setMaxSale(Double maxSale) {
		this.maxSale = maxSale;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
    
    public List<StockCollocation> getStockCollocations() {
		return stockCollocations;
	}
	public void setStockCollocations(List<StockCollocation> stockCollocations) {
		this.stockCollocations = stockCollocations;
	}
	public Cargo getCargo() {
		return cargo;
	}
	public void setCargo(Cargo cargo) {
		this.cargo = cargo;
	}
	public String getStockId(){
        return this.stockId;
    }
    public void setStockId(String stockId){
         this.stockId=stockId;
    }

    public Double getStockNum() {
		return stockNum;
	}
	public void setStockNum(Double stockNum) {
		this.stockNum = stockNum;
	}
	public Double getStockDebt() {
		return stockDebt;
	}
	public void setStockDebt(Double stockDebt) {
		this.stockDebt = stockDebt;
	}
	public String getCargoId(){
        return this.cargoId;
    }
    public void setCargoId(String cargoId){
         this.cargoId=cargoId;
    }

    public String getShopId(){
        return this.shopId;
    }
    public void setShopId(String shopId){
         this.shopId=shopId;
    }

    public Date getCreateDate(){
        return this.createDate;
    }
    public void setCreateDate(Date createDate){
         this.createDate=createDate;
    }

    public String getCreateUserId(){
        return this.createUserId;
    }
    public void setCreateUserId(String createUserId){
         this.createUserId=createUserId;
    }

    public String getCreateUserName(){
        return this.createUserName;
    }
    public void setCreateUserName(String createUserName){
         this.createUserName=createUserName;
    }

    public Date getModifyDate(){
        return this.modifyDate;
    }
    public void setModifyDate(Date modifyDate){
         this.modifyDate=modifyDate;
    }

    public String getModifyUserId(){
        return this.modifyUserId;
    }
    public void setModifyUserId(String modifyUserId){
         this.modifyUserId=modifyUserId;
    }

    public String getModifyUserName(){
        return this.modifyUserName;
    }
    public void setModifyUserName(String modifyUserName){
         this.modifyUserName=modifyUserName;
    }

    public Integer getDeleteMark(){
        return this.deleteMark;
    }
    public void setDeleteMark(Integer deleteMark){
         this.deleteMark=deleteMark;
    }

}